# 为什么前后端不分离不应该用restful风格
# 1. 不能使用命名空间指定url
# 2. 不好使用跳转，因为多个动作指向一个url
# 前后端不分离如果使用类视图应该按照动作对类视图分类
# 前后短分离如果使用类视图应该按照操作的是单数还是双数进行分类

#!/usr/bin/env python
"""Django's command-line utility for administrative demo."""
import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'


def main():
    """Run administrative demo."""
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
    execute_from_command_line(sys.argv)


if __name__ == '__main__':
    main()
